<%@ page language="java" session="true"
	contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>New Document</title>
</head>
<body>

	<form action="adddocument.html" method="POST">
	<table>
		<tr>
			<td>Select the language used to write the document</td>
			<td><select id="language" name="language">
					<c:forEach var="languageEntry" items="${languages}"
						varStatus="status">
						<option value="${languageEntry.key}">${languageEntry.value.name}</option>
					</c:forEach>
			</select>
			</td>
		</tr>
		<tr><td>Name</td><td><input type="text" name="name"></td></tr>
		<tr><td>Description</td><td><input type="text" name="description"></td></tr>
		<tr><td colspan="2"><input type="submit" value="Save"></td></tr>
	</table>
	</form>
</body>
</html>